Python program to check if substring is present in a given string